package com.util.comm;

/**
 * 资源国际化
 */
import java.util.Locale;
import java.util.ResourceBundle;


import com.base.web.BaseAction;
import com.opensymphony.xwork2.ActionContext;

public class GlobleMessage extends BaseAction {
	public String swichMessage() {
	   ResourceBundle  boundle =ResourceBundle.getBundle("globalMessage", Locale.US);
	   System.out.println( boundle.getString("introduce"));
	   ActionContext context=   ActionContext.getContext();
	   Locale local =Locale.US;
	   context.setLocale(local);
       return "message";
	}
	public String swichZhong() {
		   ResourceBundle  boundle =ResourceBundle.getBundle("globalMessage");
	       return "message";
		}
}
